<template>
  <div>
    <w-nav-bar
      title="回收站"/>
    <w-cell
      v-for="(v, k) in dataArr"
      :key="k"
      @click="cellClick(v)"
      :title="v.name"
      :content="v.content"
      :footer="v.dateStr"/>
    <w-dustbin
      ref="WDustbin"
      @reload="loadData"/>
  </div>
</template>

<script>
  import FeedBackModel from '@/models/web/FeedBackModel'
  import WCell from '@/components/mobile/cell/00'
  import WDustbin from '../../../com/dustbin/index'

  export default {
    name: 'MeAdviceDustbin',
    components: {
      WCell,
      WDustbin
    },
    data() {
      return {
        /**
         * 列表加载模型
         */
        dataArr: []
      }
    },
    methods: {
      /**
       * 加载数据
       */
      loadData() {
        FeedBackModel.dustbin_all().w_then((dataArr) => {
          this.dataArr = dataArr
        })
      },
      /**
       * cell 点击
       */
      cellClick(item) {
        this.$refs['WDustbin'].show(item)
      }
    },
    mounted() {
      this.loadData ()
    }
  }
</script>

<style lang="scss" scoped>

</style>

